package com.sven.idrivingfutureserver.exception;

import com.sven.idrivingfutureserver.common.ResultCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseException extends RuntimeException {
    private static final long serialVersionUID = -4197007376640287429L;
    ResultCode resultCode;

    public String getMessage() {
        return resultCode.message();
    }
}
